package org.sn.jdish.spring.springboot.controller;

import org.sn.jdish.spring.springboot.base.Config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * springboot properties
 * 
 * @author snzigod@hotmail.com
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

	@Autowired
	private Config config;

	@ResponseBody
	@RequestMapping("/getProperties")
	String home() {
		return "evn info: " + config.getEvnName();
	}

}